package service

import (
	"go_code/gin-blog/dao/db"
	"go_code/gin-blog/model"
)

func GetAllCategoryList() (categoryList []*model.Category,err error) {
	categoryList,err = db.GetAllCategoryList()
	if err != nil {
		return nil,err
	}
	return categoryList,nil



}